package com.ygqh.baby.service;

import com.ygqh.baby.ao.AppType;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgUserTemplateMessageSetting;

import java.util.List;

/**
 * @author Ss
 */
public interface YgUserTemplateMessageSettingService {

    List<YgUserTemplateMessageSetting> find();

	int findCount();

	YgUserTemplateMessageSetting findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgUserTemplateMessageSetting ygUserTemplateMessageSetting);

	int update(YgUserTemplateMessageSetting ygUserTemplateMessageSetting);

	int saveOrUpdate(YgUserTemplateMessageSetting ygUserTemplateMessageSetting);

	ResultSet<YgUserTemplateMessageSetting> search(QueryInfo queryInfo, String q);

	boolean sendAble(Long userId, String templateId, String platformNo, AppType appType);

	List<YgUserTemplateMessageSetting> findListByUserId(Long userId, String platformNo, AppType appType);
}
